package com.zfl.thread.day01;

public class Demo01 {
    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getName());
        new Thread(()->{
            for (int i = 1; i <= 100; i+=2) {
                System.out.println(Thread.currentThread().getName()+"["+i+"]");
            }
        }).start();
        new Thread(()->{
            for (int i = 2; i <= 100; i+=2) {
                System.out.println(Thread.currentThread().getName()+"["+i+"]");
            }
        }).start();
    }
}
